package com.sanrenzu.chunbo.ui.homepage;


import com.sanrenzu.chunbo.bean.sms.DataBean;
import com.sanrenzu.chunbo.bean.sms.HomePageBean;

import retrofit2.Call;
import retrofit2.Callback;
import retrofit2.Response;


/**
 * Created by asus on 2016/8/30.
 * 创建一个指挥者
 */
public class HomePagePresenter implements HomePageContract.Presenter {
    private HomePageContract.View view;
    private HomePageContract.Model model;

    public HomePagePresenter(HomePageContract.View view){
        this.view = view;
        this.model = new HomePageModel();
    }

    public void GetHomePage(){
        model.getHomePage(new Callback<HomePageBean>() {
            @Override
            public void onResponse(Call<HomePageBean> call, Response<HomePageBean> response) {
                HomePageBean<DataBean> body = response.body();
                
            }

            @Override
            public void onFailure(Call<HomePageBean> call, Throwable t) {

            }
        });
    }
}
